import org.rsbot.script.wrappers.RSTile;

class MapExplorer$AStar$Node
{
  public int x;
  public int y;
  public Node prev;
  public double g;
  public double f;

  public MapExplorer$AStar$Node(int paramInt1, int paramInt2)
  {
    this.x = paramInt1;
    this.y = paramInt2;
    this.g = (this.f = 0.0D);
  }

  public int hashCode()
  {
    return this.x << 4 | this.y;
  }

  public boolean equals(Object paramObject)
  {
    if ((paramObject instanceof Node)) {
      Node localNode = (Node)paramObject;
      return (this.x == localNode.x) && (this.y == localNode.y);
    }
    return false;
  }

  public String toString()
  {
    return "(" + this.x + "," + this.y + ")";
  }

  public RSTile toRSTile(int paramInt1, int paramInt2) {
    return new RSTile(this.x + paramInt1, this.y + paramInt2);
  }
}